import request from '@/utils/request'
const api_name='/Statistics'



export default{

    //出车记录统计
    carRecord(year){
        return request({
            url:`${api_name}/SelectCarRecord?year=${year}`,
            method:"post",
        })
    },

    //变电统计
    electricityRecord(electricityRecordDTO){
        return request({
            url:`${api_name}/SelectElectricityRecord`,
            method:"post",
            data:electricityRecordDTO
        })
    },

    //导线统计
    wireRecord(wireRecordDTO){
        return request({
            url:`${api_name}/SelectWireRecord`,
            method:"post",
            data:wireRecordDTO
        })
    },

    //新品记录统计
    newRecord(newRecordDTO){
        return request({
            url:`${api_name}/SelectNewRecord`,
            method:"post",
            data:newRecordDTO
        })
    },

    //电缆记录统计
    cableRecord(cableRecordDTO){
        return request({
            url:`${api_name}/SelectCableRecord`,
            method:"post",
            data:cableRecordDTO
        })
    },

    //物料出入记录统计
    materialRecord(materialRecordDTO){
        return request({
            url:`${api_name}/SelectMaterialRecord`,
            method:"post",
            data:materialRecordDTO
        })
    },

    //人员任务记录统计
    personRecord(year){
        return request({
            url:`${api_name}/SelectPersonRecord`,
            method:"post",
            data:year
        })
    },



}